home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 5 / MacMania 5.toast / / Internet software / NewsWatcher / NW Source / Source / glob.c < prev    next >
Text File  |  1997-01-09  |  3KB  |  60 lines

  1. /*----------------------------------------------------------------------------
  2.  
  3.     glob.c
  4.  
  5.     This file contains declarations for all the global variables.
  6.     
  7.     Copyright © 1994-1997, Northwestern University.
  8.  
  9. ----------------------------------------------------------------------------*/
  10.  
  11. #include "glob.h"
  12.  
  13. TDispatch gDispatch[kNumWindowKind];    /* dispatch table */
  14.  
  15. long gNumGroups = 0;                    /* number of newsgroups */
  16. long **gGroupNameOffsets = nil;            /* handle to array of offsets into gGroupNames */
  17. Handle gGroupNames = nil;                /* handle to group name strings */
  18. WindowPtr gFullGroupWindow = nil;        /* pointer to full group list window */
  19. Boolean gFullGroupListDirty = false;    /* true if full group list dirty */
  20. Boolean gMustDoZoomOnShowFullGroupList = true;
  21.                                         /* true if full group list needs zooming */
  22.  
  23. TPrefRec gPrefs;                        /* preferences */
  24.  
  25. CStr255 gAutoFetchHost;                    /* autofetch host */
  26. CStr255 gAutoFetchUsername;                /* autofetch username */
  27. char gAutoFetchPassword[32];            /* autofetch password */
  28. char gAutoFetchPath[32];                /* autofetch path */
  29.  
  30. Boolean gDone = false;                    /* flag set true upon program termination */
  31. Boolean gCancel = false;                /* flag set when user cancels an action */
  32. Boolean gStartupOK = true;                /* true if no errors during startup */
  33. Boolean gStartingUp = true;                /* true during startup */
  34. extern Boolean gPrefsFileFoundAtStartup = false;    /* true if prefs file found during startup */
  35. Boolean gLongOperation = false;            /* true during long operations */
  36. Boolean gInDialog = false;                /* true while in dialog */
  37. Boolean gInBackground;                    /* background/foreground flag */
  38. Boolean gAEServer = false;                /* true while responding to Apple event */
  39. DialogPtr gMyCurDialog = nil;            /* pointer to NewsWatcher's current dialog
  40.                                             window, or nil if none */
  41. Rect gDesktopExtent;                    /* desktop extent */
  42. Cursor gIBeamCurs;                        /* ibeam cursor */
  43. Cursor gWatchCurs;                        /* watch cursor */
  44.  
  45. Boolean gHaveDragMgr;                    /* true if Drag Manager is available */
  46. OSErr (*gDragPostProcessor)(void) = nil;    /* pointer to drag and drop post-processing
  47.                                                function, or nil if none */
  48. OSErr gDragErr = noErr;                    /* Drag Manager handler error code. */
  49. Boolean gDidDrag;                        /* true if did a drag and drop */
  50.  
  51. EventRecord gCurEvent = {0, 0, 0, {0, 0}, 0};                    
  52.                                         /* current event being handled */
  53. EventRecord gPrevEvent = {0, 0, 0, {0, 0}, 0};                    
  54.                                         /* previous event */
  55.  
  56. Boolean gHaveTEOutlineHilite;            /* true if TE outline hilight feature
  57.                                            is available */
  58.                                            
  59. CStr255 gFindPattern = "";                /* pattern for Find and Find Again commands */
  60.